import { http, httpFormData } from '@/utils/layoutService'

const API = {
  postAddLabel: '/labels/addLabels',
  getDeleteLabel: '/labels/delete',
  postAllLabel: '/labels/postLabelList',
  postUpdateLabel: '/labels/update',
}
export const addLabel = (data: { data: any }) =>
  http.post(API.postAddLabel, { data: data })

export const deleteLabel = (data: { data: any }) =>
  http.get(API.getDeleteLabel, { params: data })

export const allLabel = (data: { data: any }) =>
  http.post(API.postAllLabel, { data: data })

export const updateLabel = (data: { data: any }) =>
  http.post(API.postUpdateLabel, { data: data })
